﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserClassTasks.aspx.cs" Inherits="sysadmin_DL_Project_UserClassTasks" %>

<%@ Register TagPrefix="radU" Namespace="Telerik.WebControls" Assembly="RadUpload.Net2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>查看作业回复</title>
    <link href="../../../css/1/css/css.css" type="text/css" rel="stylesheet" />
 <script type="text/javascript" language="javascript">
        function ShowNo()                        //隐藏两个层
        {
            document.getElementById("doing").style.display="none";
            document.getElementById("divLogin").style.display="none";
        }
        function $(id)         
        {
            return (document.getElementById) ? document.getElementById(id) : document.all[id] ;
        }
        function showFloat()                    //根据屏幕的大小显示两个层
        {
            var range = getRange();
            $('doing').style.width = range.width + "px";
            $('doing').style.height = range.height + "px";
            $('doing').style.display = "block";
            document.getElementById("divLogin").style.display="";
        }
        function getRange()                      //得到屏幕的大小
        {
              var top     = document.body.scrollTop;
              var left    = document.body.scrollLeft;
              var height  = document.body.clientHeight;
              var width   = document.body.clientWidth;

              if (top==0 && left==0 && height==0 && width==0) 
              {
                top     = document.documentElement.scrollTop;
                left    = document.documentElement.scrollLeft;
                height  = document.documentElement.clientHeight;
                width   = document.documentElement.clientWidth;
              }
              return  {top:top  ,left:left ,height:height ,width:width } ;
        }
        
        function AutoColseAler()
        {
            showFloat();
            setTimeout("ShowNo()",3000);
        }
    </script></head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="678" border="0" cellspacing="0" cellpadding="0" class="border_style2"
            id="Table2" runat="server">
            <tr>
                <th style="text-align: left;">
                    作业回复
                </th>
            </tr>
        </table>
        <table width="678" border="0" cellspacing="0" cellpadding="0" id="Table1" runat="server"
            style="text-align: left;">
            <tr>
                <td colspan="2">
                    作业要求
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Label runat="server" ID="lbl_TaskTitle"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Label runat="server" ID="lbl_TaskContent"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    附件：<asp:Label runat="server" ID="lbl_TaskAccessory"></asp:Label>
                </td>
                <td>
                    结束时间：<asp:Label runat="server" ID="lbl_endtime"></asp:Label>
                </td>
            </tr>
        </table>
        <br />
        <table width="678" border="0" cellspacing="0" cellpadding="0" id="Table3" runat="server"
            style="text-align: left;">
            <tr>
                <td colspan="2">
                    <asp:Label ID="lbl_UserName" runat="server" ForeColor="Red"></asp:Label>的作业
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Label ID="lbl_MyTaskTitle" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Label runat="server" ID="lbl_MyTaskContent"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    附件：
                    <asp:Label runat="server" ID="lbl_MyTaskAccessory"></asp:Label>
                </td>
                <td>
                    完成时间：<asp:Label runat="server" ID="lbl_Finishtime"></asp:Label>
                </td>
            </tr>
        </table>
        <br />
        <table width="678" border="0" cellspacing="0" cellpadding="0" id="Table4" runat="server"
            style="text-align: left;">
            <tr>
                <td>
                    教师评价
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="gv_TeacherReply" runat="server" AutoGenerateColumns="False" Width="100%">
                        <Columns>
                            <asp:TemplateField ShowHeader="False">
                                <ItemTemplate>
                                    <table width="678" border="0" cellspacing="0" cellpadding="0" id="Table3" runat="server"
                                        style="text-align: left;">
                                        <tr>
                                            <td>
                                                教师：<%#Eval("Name")%>
                                            </td>
                                            <td>
                                                附件：
                                                <%#Eval("AccessoryName")%>
                                            </td>
                                            <td>
                                                完成时间：<%#Eval("CreateDate")%>
                                            </td>
                                            <td>
                                                得分：<%#Eval("Point")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <%#Eval("Content") %>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EmptyDataTemplate>
                            No Data!
                        </EmptyDataTemplate>
                    </asp:GridView>
                </td>
            </tr>
        </table>
        <br />
        <table width="678" border="0" cellspacing="0" cellpadding="0" id="Table5" runat="server"
            style="text-align: left;">
            <tr>
                <td colspan="2">
                    作业回复
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <%--<asp:GridView ID="gv_UserReply" runat="server" AutoGenerateColumns="False" Width="100%">
                        <Columns>
                            <asp:TemplateField ShowHeader="False">
                                <ItemTemplate>
                                    <table width="678" border="0" cellspacing="0" cellpadding="0" id="Table3" runat="server"
                                        style="text-align: left;">
                                        <tr>
                                            <td>
                                                回复人：<%#Eval("Name")%>
                                            </td>
                                            <td>
                                                附件：
                                                <%#Eval("AccessoryName")%>
                                            </td>
                                            <td>
                                                完成时间：<%#Eval("CreateDate")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3">
                                                <%#Eval("Content") %>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EmptyDataTemplate>
                            No Data!
                        </EmptyDataTemplate>
                    </asp:GridView>--%>
                    <asp:Repeater ID="rpt_PaperReseach" runat="server" OnItemCommand="rpt_PaperReseach_ItemCommand">                    
                    <ItemTemplate>
                        <table width="678" border="0" cellpadding="2" cellspacing="0" class="border_style">
                            <tr>
                                <td style="font-size: 12px; font-weight: bold; padding-left: 30px; padding-top: 10px;color: #275c97;">
                                    <img src="../../../css/1/webimages/zx1.png" align="absmiddle" alt="" />
                                    <%#Eval("Content") %></td>
                            </tr>
                            <tr>
                                <td style="padding-left: 50px; color: Gray; padding-bottom: 5px;">
                                   附件：<%#Eval("AccessoryName")%>
                                </td>
                            </tr>
                            
                            <tr>
                                <td style="padding-left: 50px; color: Gray; padding-bottom: 10px;">
                                    回复时间：<%#Eval("CreateDate")%>
                                    &nbsp;&nbsp;&nbsp;&nbsp; 姓名：<%#Eval("Name")%>
                                </td>
                            </tr>
                            <tr>
                                <td style="padding-left: 50px; color: Gray; padding-bottom: 10px;text-align:right">
                                    <asp:LinkButton ID="lnbtn_Quote" runat="server" CommandArgument='<%#Eval("TReply_Id") %>' CommandName="Quote" >引用</asp:LinkButton>

                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:Repeater>
                </td>
            </tr>
        </table>
        <br />
        <hr />
        <table width="670" border="0" cellpadding="0" cellspacing="0" class="border_style2">
            <tr>
                <td colspan="2">
                    我的评价<br/>
                    <asp:Label runat="server" ID="lbl_qoen"></asp:Label> 
                    <asp:Button ID="Button1" runat="server" Text="取消引用" CssClass="bottom" OnClick="btnclear_Click" Visible="false" />
                </td>
            </tr>
            <tr>
                <td>
                    内容
                </td>
                <td>                
                    <asp:TextBox ID="txt_MyTaskContent" runat="server" Width="297px" TextMode="MultiLine"
                        Rows="6" BorderWidth="1px"></asp:TextBox><%--
                    <asp:RequiredFieldValidator ID="rfv_txt_MyTaskContent" runat="server" ErrorMessage="*"
                        ControlToValidate="txt_MyTaskContent"></asp:RequiredFieldValidator>--%>
                </td>
            </tr>
            <tr>
                <td>
                    评分
                </td>
                <td>
                    <asp:TextBox ID="txt_Score" runat="server" Width="297px" MaxLength="36" BorderWidth="1px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    附件标题
                </td>
                <td>
                    <asp:TextBox ID="txt_MyAccessoryTitle" runat="server" Width="297px" MaxLength="36"
                        BorderWidth="1px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    附件
                </td>
                <td>
                    <asp:Label runat="server" ID="lbl_MyAccessoryTitle"></asp:Label>
                    <asp:Label runat="server" ID="lbl_MyAccessoryid" Visible="false"></asp:Label>
                    <a href="#" onclick="showFloat();">上传新附件</a>
                    <asp:Label ID="lbl_UploadFile" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="4" class="tree-bottom-bg">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnSave" runat="server" Text="保存" CssClass="inputBotton2" OnClick="btnSave_Click" />&nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="4" class="tree-bottom-bg">
                    <asp:Label runat="server" ID="lbl_err_msg" ForeColor="Red" Visible="false"></asp:Label>
                </td>
            </tr>
        </table>
        <br />
    </div>
    <div id="doing" style="filter: alpha(opacity=30); -moz-opacity: 0.3; opacity: 0.3;
        background-color: #000; width: 100%; height: 100%; z-index: 1000; position: absolute;
        left: 0; top: 0; display: none; overflow: hidden;">
    </div>
    <div id="divLogin" style="border: solid 10px #898989; background: #fff; padding: 10px;
        width: 678px; z-index: 1001; position: absolute; display: none; top: 32%; left: 47%;
        margin: -200px 0 0 -400px;">
        <div style="padding: 3px 15px 3px 15px; text-align: left; vertical-align: middle;">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2">
                <tr>
                    <th>
                        &nbsp;
                    </th>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lbl_msg_Description" runat="server" Text="上传"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <radU:RadProgressManager ID="Radprogressmanager1" Width="100%" runat="server" />
                        <radU:RadProgressArea ID="progressArea1" Width="100%" runat="server">
                        </radU:RadProgressArea>
                        <br />
                        <asp:FileUpload ID="FileUpload1" runat="server" Width="80%" />
                        <asp:Button ID="btn_Back" runat="server" CssClass="inputBotton2" Text="上传" OnClick="btnUpload_Click" />
                        <br />
                        <asp:Label ID="lbl_FileUpload_msg_FileType" runat="server" Text="" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="tree-bottom-bg1">
                        <input id="btn_colse" type="button" value='关闭' class="inputBotton2" onclick="ShowNo()" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
